package org.credo.stringTest;

public class lastIndexOf {

	public static void main(String[] args) {
		String phone="123123123 1231 011 12345678901";
		System.out.println(phone.length());
		String aa=phone.substring(phone.length()-11,phone.length());
		System.out.println("aa:"+aa);
		
		lastIndexOf temp=new lastIndexOf();
		System.out.println("tt:"+temp.regularJudgePhoneNum("876543211"));
	}
	
	private String regularJudgePhoneNum(String Str) {
		if (null == Str) {
			return null;
		} else if ("".equals(Str)) {
			return "";
		} else {
			String MobilePhoneNumber = Str.substring(Str.length() - 11, Str.length());
			return MobilePhoneNumber;
		}
	}

}
